#!/usr/bin/python3.7.7
# -*- coding: utf-8 -*-

import socket

array_data = [
    '1234567890123456789'
    , '222222222222222222222'
    , '333333333333333333333'
]


def run():
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect(('127.0.0.1', 6688))

    for data in array_data:
        s.send(data.encode('utf-8'))
        print(s.recv(1024))
    s.send(b'exit')
    s.close()


if __name__ == "__main__":
    run()

